package com.wgchao.authmanager.infrastructure.jpa.repository;

import com.wgchao.authmanager.infrastructure.jpa.entity.ProjectInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ProjectInfoJpaRepository extends JpaRepository<ProjectInfo, Long>, JpaSpecificationExecutor<ProjectInfo> {
    ProjectInfo findFirstByIdentify(String identify);
    ProjectInfo findFirstByIdentifyAndDelIsFalse(String identify);
    List<ProjectInfo> findAllByDelIsFalse();
    List<ProjectInfo> findAllByDisabledAndDelIsFalse(boolean disabled);
}
